<?php
namespace app\common\model;

use think\Model;

class Withdraw extends Model
{
    public function findOne(array $where=[])
    {
        return $this->where($where)->find();
    }
    public function getList(array $where=[], $pageSize=false, array $pageconfig=[], $fields=false, $order='w.id desc')
    {
        return $this->alias('w')->join('__USER__ u', 'u.id=w.user_id')->where($where)->field($fields)->order($order)->paginate($pageSize, false, $pageconfig);
    }
}